package com.ruoyi.web.controller.tool;

import com.ruoyi.system.service.King.IKingCanService;
import com.ruoyi.web.until.Base64utils;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public class CommonTest {

	@Autowired
	private IKingCanService iKingCanService;
		
	@Test
	public void testGson() {
		String s1 = Base64utils.encryptions("112345");
		String s2 = Base64utils.decrypts(s1);
		System.out.println("s1:"+s1);
		System.out.println("s2:"+s2);

	}

	@Test
	public void testOne() {
		List<String> list = new ArrayList<>();
		list = iKingCanService.getAllCang();
		if(list.size()>0){
			List<String> list1 =list;
		}

	}

	
}
